package Oop.ooptest.test08;

public class ABstractTest {
    public static void main(String[] args) {
        Teacher t = new Teacher("a聪明", "男", 11);
        //调用具体实现的方法
        t.earnMoney();
        int i = t.earnMoneyMonth();
        System.out.println(i);
        t.getAge();
        t.getName();
        t.getSex();


        Doctor d = new Doctor();
        d.run();
        d.earnMoney();
        int i1 = d.earnMoneyMonth();
        System.out.println(i1);



    }
}
